
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Edge()
driver.get("http://121.43.169.97:8848/pageA.html")
driver.maximize_window()
time.sleep(1)
driver.find_element(By.CSS_SELECTOR, "#userA").send_keys("admin")
driver.get_screenshot_as_file(r"C:\Users\DLK\Desktop\课堂截图\img01.jpg")






